import request from '@/utils/request'

const baseUrl = '/system/media'

// 上传图片
export function uploadImg(data: FormData) {
    return request.post(`${baseUrl}/upload/img`, data, {
        headers: {
            'Content-Type': 'multipart/form-data',
        },
    })
}